/*    */ package tools.data.output;
/*    */ 
/*    */ import java.io.ByteArrayOutputStream;
/*    */ import tools.HexTool;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MaplePacketLittleEndianWriter
/*    */   extends GenericLittleEndianWriter
/*    */ {
/*    */   private final ByteArrayOutputStream baos;
/*    */   
/*    */   public MaplePacketLittleEndianWriter() {
/* 22 */     this(32);
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public MaplePacketLittleEndianWriter(int size) {
/* 32 */     this.baos = new ByteArrayOutputStream(size);
/* 33 */     setByteOutputStream(new BAOSByteOutputStream(this.baos));
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public byte[] getPacket() {
/* 43 */     return this.baos.toByteArray();
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public String toString() {
/* 53 */     return HexTool.toString(this.baos.toByteArray());
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\tools\data\output\MaplePacketLittleEndianWriter.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */